<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-merchantPayRecord-edit" th:object="${merchantPayRecord}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
	            <div class="form-group">	
                <label class="col-sm-3 control-label">关联到用户提现记录表的id：</label>
                <div class="col-sm-8">
                    <input id="relateId" name="relateId" th:field="*{relateId}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">生成阿里的结算订单号：</label>
                <div class="col-sm-8">
                    <input id="alipayId" name="alipayId" th:field="*{alipayId}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">本次实际交易金额：</label>
                <div class="col-sm-8">
                    <input id="transMoney" name="transMoney" th:field="*{transMoney}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">本次交易手续费：</label>
                <div class="col-sm-8">
                    <input id="handMoney" name="handMoney" th:field="*{handMoney}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">交易前金额：</label>
                <div class="col-sm-8">
                    <input id="beforeMoney" name="beforeMoney" th:field="*{beforeMoney}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">交易后金额：</label>
                <div class="col-sm-8">
                    <input id="afterMoney" name="afterMoney" th:field="*{afterMoney}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">状态：</label>
                <div class="col-sm-8">
                    <select id="thisStatus" name="thisStatus" class="form-control m-b"
                            th:with="type=${@dict.getType('thisStatus')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
                                th:field="*{thisStatus}"></option>
                    </select>
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">失败原因：</label>
                <div class="col-sm-8">
                    <input id="reason" name="reason" th:field="*{reason}" class="form-control" type="text">
                </div>
            </div>
									</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "module/merchantPayRecord"
		$("#form-merchantPayRecord-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-merchantPayRecord-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
